package com.example.dao;

import com.example.utils.DBConnection;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.SimpleDateFormat;
import java.util.*;

public interface TopicDao {
    public List<Map<String,Object>> getHotTopicList() ;

    public List<Map<String,Object>> getNewTopicList() ;

    public List<Map<String,Object>> getNiceTopicList() ;

    public List<Map<String,Object>> getSpecificTypeList(String type) ;

    public List<Map<String,Object>> getGoodTopicList(String goodType) ;

    public List<Map<String,Object>> getCommentList(Integer tId);

    public List<Map<String,Object>> getSearchList(String words);

    public Integer selectIsLike(Integer uId,Integer tId);

    public Integer saveLike(Integer uId,Integer tId,Boolean isLike);

    public Integer selectIsCollection(Integer uId,Integer tId) ;

    public Integer saveCollection(Integer uId,Integer tId,Boolean isCollection) ;

    public Integer insertTopic(Integer uId,String title,String type,String realStatus,String content);
}
